using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using MediaOwl.Common.ScreenManagement;
using MediaOwl.Cryptos.Resources;

namespace MediaOwl.Cryptos.ViewModels
{
    [Export(typeof(IWorkspace))]
    public sealed class CryptosViewModel : Workspace<IWorkitem<IWorkspace>>
    {
        #region Constructor
        [ImportingConstructor]
        public CryptosViewModel([ImportMany(AllowRecomposition = true)] IEnumerable<IWorkitem<CryptosViewModel>> childScreens)
        {
            ChildScreens = childScreens as IEnumerable<IWorkitem<IWorkspace>>;
            DisplayName = Captions.ModuleTitle;
            Order = 5;
            IconName = Captions.MenuTitle;
            Icon = new ImageBrush
            {
                ImageSource = new BitmapImage(new Uri(@"/MediaOwl.Cryptos;component/Resources/Images/Cryptos.png", UriKind.Relative))
            };

            FillItems();
        }
        #endregion  
    
    }
}